﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(ScriptableOb))]
public class ScriptableObEditor : Editor
{
    private ScriptableOb m_Script;

    private void OnEnable()
    {
        m_Script = (ScriptableOb)target;
    }

    public override void OnInspectorGUI()
    {
        EditorGUILayout.Vector2Field(new GUIContent("SliderValue Range"), m_Script.sliderValue);
        EditorGUILayout.MinMaxSlider(new GUIContent("SliderValue"), ref m_Script.sliderValue.x, ref m_Script.sliderValue.y, 0, 10);
    }
}